package cn.hp.cms.dao;

import cn.hp.cms.entity.User;
import cn.hp.cms.utils.PageData;

import java.util.List;

public interface UserDao {
    boolean selectOneByNameAndPassword(String userName, String password);

    List<User> selectAll();

    int selectAllCount(User user);

    List<User> selectAllByLimit(PageData pageData, User user);

    int updatePasswordById(int id);

    int deleteById(String[] ids);

    User selectByName(String userName);

    int Add(User user);

    int updatePasswordByName(String username, String newPassword);

    int updateImgByName(String user, String imgPath);

    String selectImgByName(String userName);
}
